package com.hybrid.jsbridge;

import com.hybrid.jsbridge.WVAsyncAuthCheck.AsyncAuthCheckCallBack;
import com.hybrid.utils.TaoLog;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-10-09 22:58
 * @version: 9.1.0
 */
public class WVAsyncAuthCheckCallBackforJsBridge implements AsyncAuthCheckCallBack {

    String TAG = "WVAsyncAuthCheckCallBackforJsBridge";

    /*
     * (non-Javadoc)
     *
     * @see
     * android.taobao.windvane.jsbridge.WVAsyncAuthCheck.AsyncAuthCheckCallBack
     * #callBackSuccess(android.taobao.windvane.jsbridge.WVCallMethodContext)
     */
    @Override
    public void callBackSuccess(String pageUrl, WVCallMethodContext callmethod) {
        WVJsBridge.aftercallMethod(callmethod, pageUrl);
        TaoLog.w(TAG, "Async preprocessor callBackSuccess ");

    }

    /*
     * (non-Javadoc)
     *
     * @see
     * android.taobao.windvane.jsbridge.WVAsyncAuthCheck.AsyncAuthCheckCallBack
     * #callBackFail(android.taobao.windvane.jsbridge.WVCallMethodContext)
     */
    @Override
    public void callBackFail(String pageUrl, WVCallMethodContext callmethod) {

        WVJsBridge.startCall(WVJsBridge.NO_PERMISSION, callmethod);
        TaoLog.w(TAG, "Async preprocessor callBackSuccess ,");

    }
}
